.grid-cart {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center
}

.grid-cart figure {
    position: relative;
    float: left;
    overflow: hidden;
    text-align: center;
    cursor: pointer
}

.grid-cart figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: .8
}

.grid-cart figure figcaption {
    padding: 2em;
    color: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.grid-cart figure figcaption::after,
.grid-cart figure figcaption::before {
    pointer-events: none
}

.grid-cart figure .project__name span {
    font-weight: 700
}

figure.effect-bubba {
    background: #1d1c1c;
    max-width: 480px
}

figure.effect-bubba img {
    opacity: 1;
    -webkit-transition: opacity .35s;
    -o-transition: opacity .35s;
    transition: opacity .35s
}

figure.effect-bubba:hover img {
    opacity: .7
}

figure.effect-bubba figcaption::after,
figure.effect-bubba figcaption::before {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    content: "";
    opacity: 0;
    -webkit-transition: opacity .35s, -webkit-transform .35s;
    transition: opacity .35s, -webkit-transform .35s;
    -o-transition: opacity .35s, transform .35s;
    transition: opacity .35s, transform .35s;
    transition: opacity .35s, transform .35s, -webkit-transform .35s
}

figure.effect-bubba figcaption::before {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: scale(0, 1);
    -ms-transform: scale(0, 1);
    transform: scale(0, 1)
}

figure.effect-bubba figcaption::after {
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: scale(1, 0);
    -ms-transform: scale(1, 0);
    transform: scale(1, 0)
}

figure.effect-bubba .project__name {
    padding-top: 3%;
    -webkit-transition: -webkit-transform .35s;
    transition: -webkit-transform .35s;
    -o-transition: transform .35s;
    transition: transform .35s;
    transition: transform .35s, -webkit-transform .35s;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0)
}

figure.effect-bubba .project__info {
    opacity: 0;
    -webkit-transition: opacity .35s, -webkit-transform .35s;
    transition: opacity .35s, -webkit-transform .35s;
    -o-transition: opacity .35s, transform .35s;
    transition: opacity .35s, transform .35s;
    transition: opacity .35s, transform .35s, -webkit-transform .35s;
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0)
}

figure.effect-bubba:hover figcaption::after,
figure.effect-bubba:hover figcaption::before {
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1)
}

figure.effect-bubba:hover .project__info,
figure.effect-bubba:hover .project__name {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0)
}

.portfolio {
    padding-top: 67px;
    position: relative;
    overflow: hidden
}

.portfolio__content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: #fff
}

.controls {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: fixed;
    padding: 15px 0;
    bottom: 0;
    width: 100%;
    background-color: #404040;
    z-index: 1;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease
}

.controls__select {
    color: #fff;
    display: inline-block;
    border: 1px solid #fff;
    padding: 5px 10px;
    width: 163px;
    position: relative;
    cursor: pointer;
    margin: 0 15px
}

.controls__select:after {
    content: '';
    position: absolute;
    right: 10px;
    width: 15px;
    height: 15px;
    background-image: url(../img/arrow-down.svg);
    background-repeat: no-repeat;
    top: 15px
}
/* кнопка сбросить фильтры */
.control-reset.controls__select, .control-reset.controls__select a{
    border-color: #AB2C57;
}
.control-reset.controls__select:after {
    background-image: none;
}

.controls__checkbox {
    display: none;
    position: absolute
}

.controls__droplist {
    position: absolute;
    width: 100%;
    bottom: 100%;
    left: -1px;
    background-color: #404040;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
    width: 163px;
    padding: 5px 0;
    display: none;
	max-height: 400%;
	overflow-y: auto;
	overflow-x: hidden;
}

.controls__droplist::-webkit-scrollbar {
    width: 6px;
}
 
.controls__droplist::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(255,255,255,0.3);
}
 
.controls__droplist::-webkit-scrollbar-thumb {
  background-color: darkgrey;
}

.controls__label {
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    display: block;
	line-height: 1.15;
    min-height: 22px;
}

.controls__span:before {
    position: absolute;
    content: '';
    left: 8px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    -webkit-border-radius: 50%;
    border-radius: 50%
}

.controls__span:after {
    position: absolute;
    content: '';
    left: 10px;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #fff;
    -webkit-border-radius: 50%;
    border-radius: 50%
}

input[type=checkbox]:checked+span:after {
    background-color: #ab2c57
}

.project {
    -webkit-background-size: cover;
    background-size: cover;
    width: 100%;
    height: 300px;
    position: relative;
    display: block;
    text-decoration: none
}

.project__name {
    padding-left: 60px;
    padding-right: 60px;
    font-size: 32px;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    opacity: 0;
    text-shadow: 5px 30px 40px rgba(34, 34, 36, .4), 1px 6px 15px rgba(34, 34, 36, .43), 0 0 111px rgba(212, 61, 112, .11)
}

.project__name:before {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 165px;
    height: 1px;
    background-color: #fff;
    left: -webkit-calc(50% - 82.5px);
    left: calc(50% - 82.5px)
}

.project__info {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 50px 40px 0 40px;
    text-align: left
}

.project__p {
    position: relative;
    margin: 0;
    text-shadow: 1px 7px 40px rgba(34, 34, 36, .4), 1px 1px 15px rgba(34, 34, 36, .43), 0 0 111px rgba(212, 61, 112, .11)
}

.grid-cart_portfolio {
    width: 25%;
    width: 25%
}

.grid-cart_portfolio:hover .portfolio__img {
    opacity: .6
}

.grid-cart_portfolio .project__name {
    margin-top: 5px;
    line-height: 1
}

.grid-cart_portfolio .project__info {
    position: absolute;
    width: 100%;
    bottom: 40px;
    left: 0
}

.grid-cart_portfolio .project__adress {
    padding-left: 10px
}

.grid-cart_portfolio .effect-bubba {
    width: 100%;
    max-width: 100%;
    min-height: 300px
}

.grid-cart_portfolio .portfolio__img {
    -webkit-background-size: cover;
    background-size: cover;
    width: 100%;
    min-height: 300px;
    
}

.grid-cart_portfolio .project__p {
    line-height: 1.4
}

.view-controls {
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: none;
    background-color: #404040;
    color: #fff;
    padding: 5px;
    position: fixed;
    left: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
    z-index: 100;
    display: none;
    background-image: url(../img/portfolio/controls.svg);
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: 60% 60%;
    background-size: 60%
}

.hide-controls {
    position: fixed;
    right: 15px;
    top: 15px;
    display: none;
    background: 0 0;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    z-index: 10
}

.hide-controls:after,
.hide-controls:before {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    background-color: #fff;
    top: 20px;
    right: 5px
}

.hide-controls:before {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg)
}

.hide-controls:after {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg)
}

.grid-cart_active figure.effect-bubba .portfolio__img {
    opacity: .6
}

.grid-cart_active figure.effect-bubba figcaption::after,
.grid-cart_active figure.effect-bubba figcaption::before {
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1)
}

.grid-cart_active figure.effect-bubba figcaption .project__info,
.grid-cart_active figure.effect-bubba figcaption .project__name {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0)
}

@media only screen and (max-width:1200px) {
    .grid-cart_portfolio {
        width: 33.33333%
    }
}

@media only screen and (max-width:992px) {
    .grid-cart_portfolio {
        width: 50%
    }
    .controls {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        position: absolute;
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        height: 100vh;
        left: 0;
        z-index: 3001;
        display: block!important;
        -webkit-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%)
    }
    .controls__select {
        width: 29%;
        border: none
    }
    .controls__select:after {
        display: none
    }
    .controls__droplist {
        display: block!important;
        position: static;
        border: none
    }
    .hide-controls,
    .view-controls {
        display: block
    }
}

@media only screen and (max-width:768px) {
    .grid-cart_portfolio .project__name {
        margin-top: 0;
        font-size: 16px;
		padding: 10px 15px;
		background: #e23067;
    }
	
	.grid-cart_portfolio .effect-bubba {
		min-height: 280px;
	}
	
	.project__name:before {display: none;}
	
	.grid-cart_active figure.effect-bubba .portfolio__img {
		opacity: 1;
	}
	
	.grid-cart figure figcaption {
		height: auto;
		padding: 0;
		top: auto;
		bottom: 0;
		background: rgba(0,0,0,.8);
	}
	
	.grid-cart_portfolio .project__info {
		position: static;
		padding: 10px 15px;
		font-size: 13px;
	}
	
	.grid-cart_portfolio .portfolio__img {
		min-height: 280px;
	}
	
	.grid-cart_active figure.effect-bubba figcaption::after, .grid-cart_active figure.effect-bubba figcaption::before {
		border: none;
	}
	
	.project__adress {
		flex-grow: 1;
		text-align: center;
	}
	
	.project__adress p:nth-of-type(2) {
		display: none;
	}
	
	.project__view {
		display: flex;
		justify-content: space-between;
		flex-grow: 1;
		text-align: center;
	}
	
	.project__view p {border-right: 1px solid #fff; flex-grow: 1;}
}

@media only screen and (max-width:567px) {
    .grid-cart_portfolio {
        width: 100%;
    }
    .controls__select {
        width: 100%;
    }
}

@media only screen and (min-width:992px) {
    .controls {
        -webkit-transform: translateX(0)!important;
        -ms-transform: translateX(0)!important;
        transform: translateX(0)!important
    }
}

.project__name {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 26px;
}


@media only screen and (min-width:992px) and (max-width:1600px) {
	.project__name {
		font-size: 24px;
	}
	
	.project__info {
		font-size: 16px;
	}
	
	figure.effect-bubba figcaption::after, figure.effect-bubba figcaption::before {
		top: 20px;
		right: 20px;
		bottom: 20px;
		left: 20px;
	}
	
	.grid-cart figure figcaption {
		padding: 1.3em;
	}
	
	.project__info {
		padding-left: 30px;
		padding-right: 30px;
	}
}
	
.project__name:before {
	bottom: -10px;
	display: none;
}
